/*
 * 文件名：MemberUpdateThread.java	 
 * 时     间：下午4:43:35
 * 作     者：Administrator       
 * 版     权： 2012-2022 湖南智软网络科技, 公司保留所有权利.
 * 联     系：http://www.073586.com/
 */
package com.local.manager.thread;

import com.local.entity.vo.ReqeustEntity;
import com.local.service.face.LocalBizUpdateService;

/**
 * 类描述:这里是类描述
 * 
 * @ClassName: MemberUpdateThread
 * @author Administrator
 * @date 2015年7月13日 下午4:43:35
 */
public class UpdateThread implements Runnable
{
	
	private LocalBizUpdateService localBizUpdateService;
	
	private String tableName;
	
	private String recordUuid;
	
	private Object obj;
	
	public UpdateThread(LocalBizUpdateService localBizUpdateService,
			String tableName, String recordUuid, Object obj)
	{
		super();
		this.localBizUpdateService = localBizUpdateService;
		this.tableName = tableName;
		this.recordUuid = recordUuid;
		this.obj = obj;
	}
	
	@Override
	public void run()
	{
		ReqeustEntity req = new ReqeustEntity();
		// System.out.println("tableName:"+tableName);
		// System.out.println("obj:"+obj.toString());
		/*
		 * try { if(CommonContains.TABLE_MEMBER.equals(tableName)){ LocalMember
		 * localMember = (LocalMember) obj;
		 * HttpUtil.sendHttpReqeustForMember(req, localMember);
		 * 
		 * }else if(CommonContains.TABLE_CAR_IN.equals(tableName)){ CarParkIn
		 * carParkIn = (CarParkIn) obj; HttpUtil.sendHttpReqeustForIn(req,
		 * carParkIn); }else if(CommonContains.TABLE_CAR_OUT.equals(tableName)){
		 * CarParkOut carParkOut = (CarParkOut) obj;
		 * HttpUtil.sendHttpReqeustForOut(req, carParkOut);
		 * 
		 * }else if(CommonContains.TABLE_PAY_BILL.equals(tableName)){
		 * LocalPayBill localPayBill = (LocalPayBill) obj;
		 * HttpUtil.sendHttpReqeustForPayBill(req, localPayBill); } } catch
		 * (Exception e) { LocalBizUpdate localBizUpdate = new LocalBizUpdate();
		 * localBizUpdate.setRecordUuid(recordUuid);
		 * localBizUpdate.setTableName(tableName);
		 * localBizUpdate.setErrorInfo(req.getError());
		 * localBizUpdateService.saveBizUpdate(localBizUpdate); }
		 */
	}
	
}
